<div class="container">
    <div id="main">
        <div class="entry single">
            <div class="entry-header">
                <h2 class="title"><?php echo $row_producto['descripcion'];?></h2>
            </div><!-- end .entry-header -->
            <div class="entry-content">
                <?php if($ses['p_datefrom'] != '' && $ses['p_dateto'] != ''){?>
                    <p><?php echo lang('importe');?>:</p>
                    <?php $dias = $this->general->restar_fechas($ses['p_datefrom'], $ses['p_dateto']);?>
                    <?php echo lang('periodo')." ".$ses['p_datefrom']." - ".$ses['p_dateto'].
                                " (".$dias." ".($dias > 1 ? lang('noches') : lang('noche')).")";?>
                    <p class="meta" style="text-align: right; "><?php echo lang('total').": ".$suma_tarifa." €";?></p>
                    <hr/>
                    <?php if($row_producto['importe_fianza'] > 0){?>
                        <p><?php echo lang('importe_para_la_fianza');?>:</p>
                        <?php if($row_producto['pro_pi_fianza'] == 0){echo $row_producto['importe_fianza']."%";}?>
                        <?php $fianza = $suma_tarifa * ($row_producto['importe_fianza'] / 100);?>
                        <p class="meta" style="text-align: right"><?php echo $fianza." €";?></p>
                        <hr/>
                    <?php }?>

                    <?php if($row_producto['importe_reserva'] > 0){?>
                        <p><?php echo lang('importe_para_la_reserva');?>:</p>
                        <?php 
                        if($row_producto['pro_pi_reserva'] == 0){
                            echo $row_producto['importe_reserva']."%";
                            $reserva = $suma_tarifa * ($row_producto['importe_reserva'] / 100);
                        }else{
                            $reserva = $row_producto['importe_reserva'];
                        }
                        ?>
                        <p class="meta" style="text-align: right"><?php echo $reserva." €";?></p>
                        <hr/>
                    <?php }?>

                    <?php if($row_producto['importe_limpieza'] > 0){?>
                        <p><?php echo lang('importe_para_la_limpieza');?>:</p>
                        <p class="meta" style="text-align: right"><?php echo $row_producto['importe_limpieza']." €";?></p>
                        <hr/>
                    <?php }?>
                    <p class="meta">
                        <a href="<?php echo site_url('front/paypal/form')?>">
                            <div class="fbutton">
                                <div>
                                    <span class="reservar" style="padding-left: 20px;"><?php echo lang('reservar');?></span>
                                </div>
                            </div>
                        </a>
                    </p>
                <?php }?>
            </div><!-- end .entry-content -->
        </div><!-- end .entry -->

    </div><!-- end #main -->
    <div class="clear"></div>
</div><!-- end .container -->
